#include "frm_dttonifyng.h"
#include "ui_frm_dttonifyng.h"
#include "frm_diet.h"
#include "frm_menu.h"
#include <QDesktopWidget>

Frm_dttonifyng::Frm_dttonifyng(QDialog *parent) :
    QDialog(parent),
    ui(new Ui::Frm_dttonifyng)
{
    ui->setupUi(this);
    setWindowFlags( Qt:: WindowTitleHint | Qt:: CustomizeWindowHint | Qt:: WindowMinimizeButtonHint | Qt:: WindowMaximizeButtonHint);
    this->move(QApplication::desktop()->screen()->rect().center() - this->rect().center());
}

Frm_dttonifyng::~Frm_dttonifyng()
{
    delete ui;
}

void Frm_dttonifyng::on_pushButton_clicked()
{
    frm_menu *menu = new frm_menu();
    this->hide();
    menu->show();

}

void Frm_dttonifyng::on_pushButton_2_clicked()
{
    frm_diet *diet= new frm_diet();
    diet->show();
    this->hide();
}
